home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: Borland C's tmpnam()
- Date: Tue, 02 Apr 96 14:16:50 GMT
- Organization: none
- Message-ID: <828454610snz@genesis.demon.co.uk>
- References: <AD85B1F49668E2D54@mcdiala11.it.luc.edu>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <AD85B1F49668E2D54@mcdiala11.it.luc.edu>
- VArase@varase.it.luc.edu "Verne Arase" writes:
-
- >As MFS only created the _illusion_ of folders, all files _were_ in the same
- >location in the file system.
- >
- >As for the file names returned tmpnam(), they are _not_ complete path
- >names. Therefore, they are only unique at the branch of the file system
- >which is currently the default location.
-
- Which is fine because ANSI C has no concept of a filesystem hierarchy so
- if you do anything to change your directory/folder you invoke undefined
- behaviour and you lose any guarantees that tmpnam() gave you.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-